3.2 Standard Properties
The Device Tree Specification defines a set of standard properties. These standard properties define attributes required by the vast majority of Device Tree nodes, and authors can simply implement them according to their standardized usage. Beyond these standard properties, device driver developers can define custom properties tailored strictly for their proprietary drivers or for developers working on identical classes of hardware.
When describing properties, the concept of a "cell" is frequently encountered. Within a Device Tree context, a cell is defined as a 32-bit unsigned integer.
3.2.1 compatible Property
The value of the compatible property is a list of strings, typically formatted as a "manufacturer,model" pair. The sorting sequence within the string list dictates that the more specific the configuration is, the earlier it must appear; the more generic the configuration is, the later it must appear. The Linux kernel parses this exact string matching list to select and bind the appropriate device driver to the hardware node. The string characters must strictly consist of lowercase letters, numbers 0–9, and hyphens, with the initial character being a lowercase letter. For example:
compatible = "fsl,mpc8641", "ns16550";
3.2.2 model Property
The model property specifies a string value that defines the exact model of the component. It should generally follow the "manufacturer,model" nomenclature. For example:
model = "fsl,MPC8349EMITX";
3.2.3 phandle Property
The phandle property value is a 32-bit unsigned integer. When a node explicitly declares a phandle property, other hardware nodes can cross-reference it via this unique numerical identifier. For instance, consider a scenario where an interrupt controller node pic is defined as follows:
pic@10000000 {
phandle = <1>;
interrupt-controller;
reg = <0x10000000 0x100>;
};
This block defines a phandle equal to 1. Consequently, alternative hardware nodes can target the pic node using the integer value 1:
regulator@1 {
interrupt-parent = <1>;
};
This relationship indicates that the parent interrupt controller for regulator@1 maps directly back to the pic@10000000 node.
3.2.4 status Property
The status property indicates the operational state of a device. The allowable values for the status property are strictly constrained to okay, disabled, reserved, failed, or failed-sss (where sss represents a specific error code payload). When the status property is omitted from a node definition, it defaults implicitly to okay. If a developer is composing a new system Device Tree derived from an existing upstream overlay or reference base, any peripheral nodes not physically routed or supported on the new target board can have their status property explicitly overridden to "disabled". This configuration ensures the kernel bypasses the initialization and probe routines for that device during system boot.
3.2.5 #address-cells and #size-cells Properties
A node's #address-cells and #size-cells properties define the addressing layout rules for its immediate child nodes. Because the Device Tree parses data packages in 32-bit word cells, #address-cells specifies how many 32-bit cells are required to encode the base address within a child node's reg property. Concurrently, #size-cells dictates how many 32-bit cells are required to encode the memory window length or size of that child node. For example, if a parent container node defines these properties as follows:
#address-cells = <2>;
#size-cells = <1>;
Then any immediate child node must format its reg property statement using exactly two cells for the address and one cell for the size parameter:
reg = <0x10000000 0x00000008 0x100>;
In this scenario, the 64-bit combined vector 0x1000000000000008 represents the physical base address of the child node (consuming two cells), and 0x100 represents the allocated memory address space boundary size (consuming one cell).
3.2.6 reg Property
The reg property maps out the physical base addresses and corresponding memory address range sizes for the given peripheral node. The explicit cell count allocated for the address components and size components is determined entirely by the #address-cells and #size-cells properties of its immediate parent node. If a single peripheral maps to multiple non-contiguous physical address windows, it can be defined using multiple grouped address-and-size blocks. For example, assuming a device maps to 100 bytes of address space beginning at 0x10000000 and an additional 200 bytes of address space beginning at 0x20000000, and assuming both the address and size targets are configured to consume exactly one cell each, the node's reg property is expressed as:
reg = <0x10000000 100 0x20000000 200>;
If the parent node defines #size-cells = <0>, the length fields within the child node's reg array are omitted entirely.
3.2.7 ranges Property
The ranges property defines the memory-mapped address translation vector from a child node's local address space to its parent node's address space. Its structural format is defined as follows:
ranges = <[child_address parent_address length] [child_address
parent_address length]...>;
The exact cell count allocated to represent the child_address is governed by the #address-cells property of the node containing the ranges property. Concurrently, the cell count allocated to represent the parent_address is governed by the #address-cells property configured in the parent node's immediate precursor (the grandparent node). If the ranges property is empty (declared as an empty property block with no cell tokens), it signifies that the child and parent memory maps are identical (a 1:1 direct identity mapping). Consider the following structural example:
bus {
#address-cells = <2>;
soc {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0xe0000000 0x00000000 0x00100000>;
serial@4600 {
device_type = "serial";
compatible = "ns16550";
reg = <0x4600 0x100>;
clock-frequency = <0>;
interrupts = <0xA 0x8>;
interrupt-parent = <&ipic>;
};
};
};
Within the soc node block, #address-cells equals 1; thus, in the ranges translation array, the local child address field for serial consumes exactly one cell (0x0). However, within the parent bus node, #address-cells is configured to equal 2. Therefore, the parent physical base address (the mapping destination address for the soc container) must consume exactly two cells (0xe0000000 0x00000000), yielding a consolidated 64-bit parent hardware boundary base address of 0xE000000000000000. By parsing this matrix, the true system-wide physical base address for the serial@4600 peripheral under the root architecture resolves cleanly to 0xE000000000004600.
3.2.8 dma-ranges Property
The dma-ranges property implements the identical structural format as the standard ranges property. It maps Direct Memory Access (DMA) address translation channels initiated by peripheral bus masters back into the upstream parent address space.
3.2.9 interrupts Property
The interrupts property is implemented by hardware nodes capable of generating interrupt lines. This property does not feature a single universal syntax specification; its cellular layout is instead strictly bound to the specific type of peripheral. Device vendors or driver authors define these parameter mappings inside matching documentation specifications, which are generally maintained within the Documentation/devicetree/bindings/ directory of the Linux kernel source tree. In the majority of configurations, the interrupts cell block encapsulates a unique hardware interrupt index (IRQ number) paired with an explicit interrupt trigger flag vector (such as edge-rising, edge-falling, level-high, or level-low indicators). For example:
interrupts = <0xA 1>;
Depending on the architecture's driver definition file, this cell configuration can be parsed to represent physical interrupt number 10 acting as an active-high edge-triggered line. Alternative interpretations are governed entirely by the device's explicit binding logic.
3.2.10 interrupt-parent Property
The interrupt-parent property defines the phandle or label reference pointing to the upstream interrupt controller routing the node's electrical interrupt signals. Modern system-on-chip architectures frequently isolate or cascade interrupt controllers inside complex hierarchical trees; the interrupt-parent attribute explicitly captures these routing dependencies. If the target upstream interrupt controller specifies a numeric handle, that value can be assigned directly to the property. Alternatively, if the parent node defines a textual label, the standard reference operator syntax (&) can be utilized. The following blocks show both implementation methodologies:
Assuming the upstream target interrupt controller node specifies an explicit handle vector of phandle = <1>;, the tracking attribute is declared as:
interrupt-parent = <1>;
Alternatively, if the upstream controller specifies a symbolic node label like intc1:, the property references it via the label lookup syntax:
interrupt-parent = <&intc1>;
3.2.11 interrupt-cells Property
This property is declared strictly inside hardware nodes functioning as an interrupt controller. It specifies how many 32-bit cells are required to encode a single interrupt descriptor within the controller's routing domain (defining the width of the interrupts property described in Section 3.2.9). In the example featured in Section 3.2.9, the interrupt descriptor consumes exactly two cells.
3.2.12 interrupt-controller Property
This is an empty boolean property applied directly to an interrupt controller node to declare that the containing node acts as an upstream system interrupt controller. It requires no accompanying cell data or value pairs. The standard syntax is defined as follows:
intc1: intc@100 {
interrupt-controller;
};
3.2.13 Nexus Nodes
A nexus node is defined as a node that implements a #<specifier>-cells property, which dictates the exact number of 32-bit cells required to encode a specific resource specifier. A specifier typically identifies a functional hardware module; for instance, the specifier in #gpio-cells maps to a GPIO module. The value assigned to #<specifier>-cells defines the cell count required to target a single resource unit within that specifier domain. If a node defines a property such as #gpio-cells = <1>;, it functions as a nexus node, and its associated resource indicator consumes exactly one cell.
The following analysis of the i.MX6Q gpio1 module shows the practical application and architectural design of nexus nodes. Within the unified Linux Device Tree include file imx6qdl.dtsi supporting both the i.MX6Q and i.MX6DL SoCs, the gpio1 node is structured as follows:
gpio1: gpio@209C000 {
compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio";
reg = <0x0209C000 0x4000>;
interrupts = <0 66 IRQ_TYPE_LEVEL_HIGH>, <0 67 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
In this block, the interrupts property indicates that this module can generate output interrupt signals. The interrupts array contains groups of three cells each, indicating that its parent interrupt controller defines #interrupt-cells = <3>. Therefore, the upstream controller requires three cells to map a single interrupt routing channel. On the i.MX6Q architecture, the first cell dictates the target GIC interrupt group/SPI index descriptor, the second cell specifies the raw interrupt number, and the third cell defines the interrupt trigger type.
The empty boolean property gpio-controller declares this hardware block as a functional GPIO controller. Operating system device drivers parse this property to identify and register the block's GPIO management capabilities.
The property #gpio-cells = <2> specifies that targeting an individual resource unit (a GPIO pin) within this controller requires exactly two cells. The first cell encodes the raw GPIO pin index number, and the second cell defines the initial electrical state or configuration flags, such as GPIO_ACTIVE_LOW.
The boolean property interrupt-controller indicates that this GPIO module also functions as an independent, downstream interrupt controller for user-space lines. Its companion property #interrupt-cells = <2> dictates that targeting any interrupt line managed by this module requires two cells: the first cell identifies the pin-specific interrupt number, and the second cell defines the signaling trigger type. Because the context implicitly locates the interrupt within the gpio1 block, a third cell to declare a GPIO module index is unnecessary, contrasting with the upstream parent controller's formatting.
Furthermore, properties such as <specifier>-map, <specifier>-map-mask, and <specifier>-map-pass-thru can also be applied to nexus nodes to handle complex cross-bus translations. Because their deployment footprints are less pervasive than the baseline #<specifier>-cells attribute, they are omitted here; developers can consult the official Device Tree Specification for extended edge-case documentation.
The standard properties detailed above represent only the baseline elements defined by the core Device Tree specification. Because the Device Tree format is inherently flexible, and because custom, vendor-specific attributes do not affect the parsing engines of unrelated devices, modern hardware descriptions rely heavily on custom provider-specific attributes.